package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.FragmentScope;
import com.wgts.wgts.mvp.model.IHomePageContentFragmentModle;
import com.wgts.wgts.mvp.model.IHomePageFragmentModel;
import com.wgts.wgts.mvp.model.imp.HomePageContentFragmentModle;
import com.wgts.wgts.mvp.model.imp.HomePageFragmentModel;
import com.wgts.wgts.mvp.presenter.IHomePageContentFragmentPersenter;
import com.wgts.wgts.mvp.presenter.IHomePageFragmentPersenter;
import com.wgts.wgts.mvp.presenter.imp.HomePageContentFragmentPersenter;
import com.wgts.wgts.mvp.presenter.imp.HomePageFragmentPersenter;
import com.wgts.wgts.mvp.view.IHomePageContentFragmentView;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.tools.CountDownTime;
import com.wgts.wgts.tools.VipMessageDate;

import dagger.Module;
import dagger.Provides;

@Module
public class HomePageContentFragmentModule {

    private IHomePageContentFragmentView view;

    public HomePageContentFragmentModule(IHomePageContentFragmentView view) {
        this.view = view;
    }

    @FragmentScope
    @Provides
    public IHomePageContentFragmentView provideView(){
        return view;
    }

    @FragmentScope
    @Provides
    public IHomePageContentFragmentModle provideModle(NetService netService, VipMessageDate vipMessageDate, CountDownTime countDownTime){
        return new HomePageContentFragmentModle(netService, vipMessageDate, countDownTime);
    }

    @FragmentScope
    @Provides
    public IHomePageContentFragmentPersenter providePersenter(IHomePageContentFragmentModle model, IHomePageContentFragmentView view){
        return new HomePageContentFragmentPersenter(view, model);
    }
}
